package com.qding.park.common.core.exceptions.system;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.qding.park.common.core.exceptions.BaseException;
import com.qding.park.common.core.exceptions.ExceptionMessage;
import com.qding.park.common.core.exceptions.ModularEnum;
import com.qding.park.common.core.exceptions.business.manager.adapterfactory.AdapterProxyCreateFail;

public class SystemUnKnown extends BaseException {
	private static final Log _log = LogFactory.getLog(SystemUnKnown.class);
	
	private static final String exceptionId="0000.0000.0000.0000";
	
	public static final String default_Name="系统未知异常";

	private ExceptionMessage exceptionMessage;

	public SystemUnKnown(ExceptionMessage exceptionMessage, Exception ex) {
		super(null, ex);
		this.exceptionMessage = exceptionMessage;
		// TODO Auto-generated constructor stub
	}

	public SystemUnKnown(Exception ex, ExceptionMessage exceptionMessage) {

		super(exceptionId, ex, null);
		this.exceptionMessage = exceptionMessage;
	}

	public ExceptionMessage getExceptionMessage() {
		return exceptionMessage;
	}

	public void setExceptionMessage(ExceptionMessage exceptionMessage) {
		this.exceptionMessage = exceptionMessage;
	}

	public void handle() {
		_log.error("AdapterException Context::" + this.exceptionMessage);
		super.handle();

	}

	/**
	 * @Field @serialVersionUID : TODO(这里用一句话描述这个类的作用)
	 */
	private static final long serialVersionUID = 1L;
}
